Skip to content

refactor: Voice Call PIP Card#1102

Open
Pecacheu wants to merge 13 commits into
mainfrom
refactor/voicepip
Open

refactor: Voice Call PIP Card#1102
Pecacheu wants to merge 13 commits into
mainfrom
refactor/voicepip

Conversation

@Pecacheu
Copy link
Copy Markdown
Contributor

@Pecacheu Pecacheu commented Apr 7, 2026

Without focused video:

With focused video:

Dragging (no change to animations)

Screencast.mp4

@Pecacheu Pecacheu force-pushed the refactor/voicepip branch 2 times, most recently from 422ba5d to 197a11f Compare April 12, 2026 00:08
@Pecacheu Pecacheu marked this pull request as ready for review April 12, 2026 00:08
@Pecacheu Pecacheu requested review from a team as code owners April 12, 2026 00:08
@Pecacheu Pecacheu marked this pull request as draft April 12, 2026 00:22
@Pecacheu Pecacheu marked this pull request as ready for review April 12, 2026 02:55
Copy link
Copy Markdown
Member

@Dadadah Dadadah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the TODOs and dead code regarding your other PRs. If this were to get merged but the other PRs weren't these TODOs would require a PR to be removed. These lines are unrelated to this PR.

Could you show more pictures of the pip, including without focus, with just voice users (no video), and a screencast of the pip being moved around the screen?

ofsX = 0,
ofsY = 0;

function touchToMouse(e: MouseEvent | TouchEvent, down = false) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this function be moved into a utility library somewhere to allow this across the app?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, just curious what you think would be a good in the file-tree for it. I could see some touch-related methods used in #835 going there too, actually.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually looking at this again, can you just use the PointerMove event instead? This would require applying touch-action: none to the pip, which is probably something we want anyway right?

Copy link
Copy Markdown
Contributor Author

@Pecacheu Pecacheu May 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah good idea, that one didn't even occur to me because last time I checked out the newer pointer events was several years back, when support was not widespread (eg. on iOS and Firefox Mobile) and the implementation was not consistent, but since 2020 it now is (or so the API support sites say at least, but we should def test on different devices to be sure)

Damn can't believe it has been 6 years since 2020 lol

@Pecacheu Pecacheu force-pushed the refactor/voicepip branch 2 times, most recently from 7be4c31 to 323949d Compare May 8, 2026 08:29
Pecacheu added 12 commits May 8, 2026 09:55
- Also un-borked the VoiceCallCardPreview which it borked

Signed-off-by: Pecacheu <[email protected]>
- Add missing tooltips to VoiceCallCard buttons
- Add missing translatable strings to VoiceCallCardActions

Signed-off-by: Pecacheu <[email protected]>
- Don't force showing video bar every time focus mode is enabled

Signed-off-by: Pecacheu <[email protected]>
- Fix reversed mute/unmute text

Signed-off-by: Pecacheu <[email protected]>
…tead of server channels

- Fix call card offset being off after initial page load by observing size of channel itself instead of an inner element

Signed-off-by: Pecacheu <[email protected]>
@Pecacheu Pecacheu force-pushed the refactor/voicepip branch from 323949d to 6df9fe6 Compare May 8, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants